cmake_minimum_required(VERSION 3.28)
project(gpio)

set(CMAKE_CXX_STANDARD 17)

find_library(GPIOCXX_LIBRARY gpiodcxx REQUIRED)

add_executable(gpio main.cpp)

target_link_libraries(gpio ${GPIOCXX_LIBRARY})

target_include_directories(gpio PRIVATE ${GPIOD_INCLUDE_DIRS})
